<template>
	<uni-popup ref="customMessagePopup" type="message" :maskClick="maskClick">
		<view class="submit-confirm-container">
			<text class="icon">{{ icon }}</text>
			<text class="message">{{ message }}</text>
			<text class="description">{{ description }}</text>
		</view>
	</uni-popup>
</template>

<script>
	export default {
		props: {
			icon: String,
			message: String,
			description: String,
			maskClick: {
				type: Boolean,
				default: false
			},
		},
		data() {
			return {

			}
		},
		methods: {
			open() {
				this.$refs.customMessagePopup.open();
			},
			close() {
				this.$refs.customMessagePopup.close();
			}
		}
	}
</script>

<style>
	/* 提交完成弹窗样式 */
	.submit-confirm-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 80%;
		margin: 10% auto;
	}

	.icon {
		margin: 60rpx;
		font-size: 100rpx;
		color: green;
	}

	.message {
		margin: 60rpx;
		font-size: 80rpx;
		font-weight: bold;
		color: #fff;
		letter-spacing: 10rpx;
	}

	.description {
		margin: 60rpx;
		font-size: 80rpx;
		color: #fff;
		letter-spacing: 10rpx;
	}


	@media screen and (max-width: 900px) {
		.icon {
			margin: 20rpx;
			font-size: 50rpx;
		}

		.message {
			margin: 20rpx;
			font-size: 40rpx;
			letter-spacing: 5rpx;
		}

		.description {
			margin: 20rpx;
			font-size: 40rpx;
			letter-spacing: 5rpx;
		}
	}
</style>